------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--[[

    调试用的电池

]]--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
local assets =
{
    Asset("ANIM", "anim/cane.zip"),
    Asset("ANIM", "anim/swap_cane.zip"),
}
local function fn()
    local inst = CreateEntity()

    inst.entity:AddTransform()
    inst.entity:AddAnimState()
    inst.entity:AddSoundEmitter()
    inst.entity:AddNetwork()

    inst.AnimState:SetBank("cane")
    inst.AnimState:SetBuild("swap_cane")
    inst.AnimState:PlayAnimation("idle")

    inst.entity:SetPristine()

    if not TheWorld.ismastersim then
        return inst
    end

    inst:AddComponent("inspectable")
    inst:AddComponent("loramia_com_power_battery")
    inst.components.loramia_com_power_battery:SetRadius(25)


    MakeHauntableLaunch(inst)
    return inst
end

return Prefab("loramia_debug_power_battery", fn, assets)
